<?php

namespace app\model\content;

use app\base\BaseModel;

class ContentArticleLikeModel extends BaseModel
{
    protected $name = 'content_article_like';

    /**
     * 获取详情
     * @param $condition
     * @return array|\think\Model|null
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function getInfoData($condition)
    {
        $data = $this
            ->where('id', $condition['id'])
            ->where('user_id', $condition['user_id'])
            ->find();
        return $data;
    }
}